Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(playlists): handle missing regex group in trackCount #651

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RealCalumPlays
Copy link

Fixes #650

This ensures that the regex doesnt just return the first group in 1000+ long playlists.
@sigma67
Copy link
Owner

sigma67 commented Sep 29, 2024

Hi @RealCalumPlays , thanks for your contribution. Could you please add a test that covers this case? Best to use a public playlist with 1000+ entries.

@RealCalumPlays
Copy link
Author

Yup can do that for ya. Sorry for the late response. Do you want another PR when I have added it?

@sigma67
Copy link
Owner

sigma67 commented Oct 3, 2024

@RealCalumPlays Thanks! No, just add it here. Please add it next to the existing tests for get_playlist. Since it's a public playlist you shouldn't have to bother with the configuration setup I hope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect track count for playlists with 1000+ songs
2 participants